
const { ccclass, property } = cc._decorator;
@ccclass
export default class NativeConsts {

    static get NativeClassPath() {
        return this.isAndroid ? "org.cocos2dx.javascript.bridge.JSFunction" : this.isIOS ? "NativeOcClass" : "";
    }
    static get appInfo() {
        return NativeConsts.isAndroid ? "getCommentInfo" : "getCommentInfo:";
    }
    static get wechartLogin() {
        return NativeConsts.isAndroid ? "loginWeChat" : "loginWeChat:";
    }
    static get shareWeChat() {
        return NativeConsts.isAndroid ? "shareWeChat" : "shareWeChat:";
    }
    static get showVideoAD() {
        return NativeConsts.isAndroid ? "showVideoAD" : "showVideoAD:";
    }
    static get sevenCashCheck() {
        return "sevenCashCheck";
    }
    static get showAdImage() {
        return NativeConsts.isAndroid ? "showAdImage" : "showAdImage:";
    }
    static get hideAdImage() {
        return NativeConsts.isAndroid ? "hideAdImage" : "hideAdImage:";
    }
    static get showBanner() {
        return NativeConsts.isAndroid ? "showBanner" : "showBanner:";
    }
    static get hideBanner() {
        return NativeConsts.isAndroid ? "hideBanner" : "hideBanner:";
    }
    static get openNativeView() {
        return NativeConsts.isAndroid ? "openNativeView" : "openNativeView:";
    }
    static get openWebView() {
        return NativeConsts.isAndroid ? "openWebView" : "openWebView:";
    }
    static get sensorHit() {
        return NativeConsts.isAndroid ? "sensorHit" : "sensorHit:";
    }
    static get screenAds() {
        return NativeConsts.isAndroid ? "showScreenAds" : "screenAds:";
    }
    static get copyText() {
        return NativeConsts.isAndroid ? "copyText" : "copyText:";
    }
    static get onGameUpgradeRole() {
        return NativeConsts.isAndroid ? "" : "onGameUpgradeRole";
    }
    static get onClientCallCocos() {
        return NativeConsts.isAndroid ? "onClientCallCocos" : "onClientCallCocos:";
    }
    static get checkAppInstalled() {
        return NativeConsts.isAndroid ? "checkAppInstalled" : "checkAppInstalled:";
    }
    static get downloadStream() {
        return NativeConsts.isAndroid ? "downloadStream" : "downloadStream:";
    }
    static get reLogin() {
        return NativeConsts.isAndroid ? "reLoginDialog" : "reLoginDialog:";
    }
    static get getTDBlackBox() {
        return NativeConsts.isAndroid ? "getTDBlackBox" : "getTDBlackBox:";
    }
    static get readTask() {
        return NativeConsts.isAndroid, "readTaskCallback";
    }
    static get Rsa() {
        return NativeConsts.isAndroid ? "Rsa" : "Rsa:";
    }
    static get RsaCallBack() {
        return NativeConsts.isAndroid ? "RsaCallback" : "RsaCallback:";
    }
    static get getBusinessMethod() {
        return NativeConsts.isAndroid ? "businessMethod" : "businessMethod:";
    }
    static isAndroid = cc.sys.isNative && cc.sys.os === cc.sys.OS_ANDROID;
    static isIOS = cc.sys.isNative && cc.sys.os === cc.sys.OS_IOS;

}
